<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>


    <footer th:fragment="table">
        <div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-cf">运营数据</div>
                            </div>
                            <div class="widget-body  am-fr">
                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                                    <div class="am-form-group">
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                                    <div class="am-form-group tpl-table-list-select">

                                    </div>
                                </div>
                                <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                                    <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">

                                    </span>
                                    </div>
                                </div>

                                <div class="am-u-sm-12">
                                     <div style="overflow-x:scroll"><table class="am-table am-table-compact am-table-striped tpl-table-black " id="example-r" style="width: 2000px">
                                         <thead>
                                         <tr>
                                             <th><button onclick="reSelect()" class="am-btn  am-btn-default am-btn-success tpl-table-list-field" type="button">反选</button></th>
                                             <th>累计成交</th>
                                             <th>运营时间</th>
                                             <th>平均转让率</th>
                                             <th>已加入人数</th>
                                             <th>运营总金额</th>
                                             <th>运营总收益</th>
                                         </tr>
                                         </thead>
                                         <tbody>
                                         <tr class="gradeX" th:each="h : ${homePage.list}">
                                             <td><input type="checkbox" name="persons"></td>
                                             <th th:text="${h.hompageAccruing}"></th>
                                             <th th:text="${h.hompageOperator}"></th>
                                             <th th:text="${h.hompageSucctran}"></th>
                                             <th th:text="${h.hompageJoined}"></th>
                                             <th th:text="${h.hompageSummoney}"></th>
                                             <th th:text="${h.hompageEamings}"></th>

                                         </tr>
                                         </tbody>
                                     </table></div>

                                    <div class="am-u-lg-12 am-cf">
                                        <div class="am-u-lg-3">
                                            跳转至:<input type="number">/ 页
                                            <span>
                                            <button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search" type="button"></button>
                                        </span>
                                        </div>

                                        <div class="am-fr">

                                            <ul class="am-pagination tpl-pagination">
                                                <li ><a href="javascript:" th:onclick="|gonewspage('${homePage.navigateFirstPage}')|">首页</a></li>
                                                <li  th:if="homePage.hasPreviousPage"><a href="javascript:" th:onclick="|gonewspage('${homePage.prePage}')|">«</a></li>
                                                <li th:each="pageNum:${#numbers.sequence(1,homePage.pages)}">
                                                    <a th:text="${pageNum}" th:onclick="|gonewspage('${pageNum}')|"></a>
                                                </li>
                                                <li th:if="homePage.hasNextPage"><a href="javascript:" th:onclick="|gonewspage('${homePage.nextPage}')|">»</a></li>
                                                <li><a href="javascript:" th:onclick="|gonewspage('${homePage.navigateLastPage}')|">尾页</a></li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </footer>

    <script>
        //页面跳转
        function gonewspage(pageNum) {
            $.ajax({
                url:"/p2p/operationPerformance/selectOperationPerformance",
                data:{"pageNum":pageNum},
                type:"get",
                dataType:"html",
                success:function (data) {
                    $("#content").html(data)
                }
            })
        }
    </script>
</head>
</html>
